/**
 * 
 */
package com.jcore1.chapter6;

import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Date;

/**
 * @author Administrator
 * 时间监听处理器
 */
public class TimePrinter implements ActionListener {

	/* (non-Javadoc)
	 * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
	 */
	@Override
	public void actionPerformed(ActionEvent e) {

		Date date = new Date();
		System.out.println("当前时间 ：" + date);
		Toolkit.getDefaultToolkit().beep();
	}

}
